<div id = '<?php echo $id_pre;?>_albumpic_list'>
	<div>
		<table width="100%">
			<tr>
				<td class="albumPicList"></td>
			</tr>
		</table>
	</div>
	<script type="text/javascript">
		$().ready(function(){
			<?php echo $id_pre;?>_showPicList('<?php echo $album_id;?>');
		});
		/* 显示相册图片列表 */
		<?php echo $id_pre;?>_showPicList = function(id,page){
			page = page?page:1;
			var action = GM.RootScript+'album/AlbumPics/ajaxPicList/'+id+"/"+'<?php echo $id_pre;?>'+"/"+page;		
			if(id>0){
				$.ajax({
				   type: "Get",
				   url: action,
				   dataType:'json',
				   success: function(msg){
				     if(msg.state){ 
					     jQuery('#<?php echo $id_pre?>_albumpic_list .albumPicList').html(msg.html);
					     jQuery('#<?php echo $id_pre?>_albumpic_list .albumPicList .pic_select').click(function(){
						     var id = jQuery(this).attr('data-id');
						     var link = jQuery(this).attr('data-link');
						     var ext = jQuery(this).attr('data-ext');
						     jQuery('#<?php echo $id_pre?> .pic_id').val(id);
							 jQuery('#<?php echo $id_pre?> .pic_link').val(link);
							 jQuery('#<?php echo $id_pre?> .pic_ext').val(ext);
							 <?php echo $id_pre?>.selectPic();
						  });
					 }else{
						 GM.tip(msg.msg,false);
					 }
				   }
				});
			}
		};
	</script>
</div>